package vo;

public class messageVO {

	private int msg_number;

	private int choose_number; // 1 : 받은 쪽지 , 2: 보낸 쪽지
	private String m_id;

	private String number2_text;
	private String number3_text;

	private String msg_from;
	private String msg_f_date;

	private String f_user_name; // 보낸 사람의 이름 + 직책 // vo에만 존재

	private String msg_to;
	private String msg_t_date;

	private String t_user_name; // 받은 사람의 이름 + 직책 // vo에만 존재

	private String msg_title;
	private String msg_context;
	private int msg_confirm;

	private String find;

	private int nowBlock =0;		
	private int nowPage =1;

	public messageVO() {
		this.number2_text = "msg_to";
		this.number3_text = "from_user";

		this.msg_number = 0;

		this.msg_from = "";
		this.msg_f_date = "";

		this.msg_to = "";
		this.msg_t_date = "";

		this.msg_title = "";
		this.msg_context = "";
		this.msg_confirm = 0;

		this.find = "msg_to";

		this.t_user_name = "";
		this.f_user_name = "";
		// TODO Auto-generated constructor stub
	}

	public int getMsg_number() {
		return msg_number;
	}

	public void setMsg_number(int msg_number) {
		this.msg_number = msg_number;
	}

	public String getMsg_from() {
		return msg_from;
	}

	public void setMsg_from(String msg_from) {
		this.msg_from = msg_from;
	}

	public String getMsg_f_date() {
		return msg_f_date;
	}

	public void setMsg_f_date(String msg_f_date) {
		this.msg_f_date = msg_f_date;
	}

	public String getMsg_to() {
		return msg_to;
	}

	public void setMsg_to(String msg_to) {
		this.msg_to = msg_to;
	}

	public String getMsg_t_date() {
		return msg_t_date;
	}

	public void setMsg_t_date(String msg_t_date) {
		this.msg_t_date = msg_t_date;
	}

	public String getMsg_context() {
		return msg_context;
	}

	public void setMsg_context(String msg_context) {
		this.msg_context = msg_context;
	}

	public int getMsg_confirm() {
		return msg_confirm;
	}

	public void setMsg_confirm(int msg_confirm) {
		this.msg_confirm = msg_confirm;
	}

	public String getFind() {
		return find;
	}

	public void setFind(String find) {
		this.find = find;
	}

	public String getF_user_name() {
		return f_user_name;
	}

	public void setF_user_name(String f_user_name) {
		this.f_user_name = f_user_name;
	}

	public String getT_user_name() {
		return t_user_name;
	}

	public int getChoose_number() {
		return choose_number;
	}

	public void setChoose_number(int choose_number) {
		this.choose_number = choose_number;
		if (choose_number == 2) {
			setNumber2_text("msg.msg_to");
			setNumber3_text("msg_info.from_user");
		} else if (choose_number == 1) {
			setNumber2_text("msg.msg_from");
			setNumber3_text("msg_info.to_user");
		} else {
			System.out.println("messageVO err!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
			setNumber2_text("msg.msg_to");
			setNumber3_text("msg_info.from_user");
		}
	}

	public String getNumber2_text() {
		return number2_text;
	}

	public void setNumber2_text(String number2_text) {
		this.number2_text = number2_text;
	}

	public String getNumber3_text() {
		return number3_text;
	}

	public void setNumber3_text(String number3_text) {
		this.number3_text = number3_text;
	}

	public String getM_id() {
		return m_id;
	}

	public void setM_id(String m_id) {
		this.m_id = m_id;
	}

	public void setT_user_name(String t_user_name) {
		this.t_user_name = t_user_name;
	}

	public String getMsg_title() {
		return msg_title;
	}

	public void setMsg_title(String msg_title) {
		this.msg_title = msg_title;
	}

	public int getNowPage() {
		return nowPage;
	}

	public void setNowPage(int nowPage) {
		this.nowPage = nowPage;
	}

	public int getNowBlock() {
		return nowBlock;
	}

	public void setNowBlock(int nowBlock) {
		this.nowBlock = nowBlock;
	}

}
